﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Models;
using BLL;
using System.Web.Script.Serialization;


namespace MiaoWeiProject.tanlu
{
    /// <summary>
    /// sosuannio 的摘要说明
    /// </summary>
    public class sosuannio : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            if (context.Request["cid"]!=null)
            {
                string zhi = context.Request["cid"].ToString();
                context.Response.ContentType = "text/plain";
                List<FaTie2> list = FaTie2BLL.Select(zhi);
                JavaScriptSerializer js = new JavaScriptSerializer();
                string jsonStr = js.Serialize(list);
                context.Response.Write(jsonStr);
            }
           

        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}